//#########################################################################
//        p2pSL-jserver
//
// (C) Copyright by hachreak
//       Released under GPL v2.
//       Author : Hachreak (hachreak at gmail dot com)
//       WebSite: www.secondlifelab.it
//       Date: 01/ago/07 - 01:37:22
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
//#########################################################################

/**
 *  01/ago/07 - 01:37:22
 *  Create by hachreak
 *  Under GPL V2 license
 */

package it.secondlifelab.p2pSL.jInterface;

import javax.swing.JTextArea;

import it.secondlifelab.p2pSL.jserver.Debug;

/**
 * @author hachreak
 *
 * visualize the debug information
 */
public class VisualDebug implements Debug {

	private JTextArea jtextarea;

	public VisualDebug(JTextArea jtextarea){
		this.jtextarea = jtextarea;
	}
	
	/* (non-Javadoc)
	 * @see it.secondlifelab.p2pSL.jserver.Debug#print(java.lang.String)
	 */
	public void print(String text) {
		// TODO Auto-generated method stub
		jtextarea.setText(jtextarea.getText()+text+"\n");
	}

	public void enable(boolean enable) {
		// TODO Auto-generated method stub
		
	}

	public void isEnabled() {
		// TODO Auto-generated method stub
		
	}

}
